# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=py3-prompt_toolkit-gns3
_pkgname=prompt_toolkit
pkgver=1.0.15
pkgrel=2
pkgdesc="Library for building powerful interactive command lines in Python - GNS3 compatible version"
url="https://pypi.python.org/pypi/prompt_toolkit"
arch="noarch"
license="BSD"
depends="py3-six py3-wcwidth python3"
makedepends="python3-dev py3-setuptools"
conflict="py3-prompt_toolkit"
source="$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

build() {
	cd "$builddir"
	python3 setup.py build
}

check() {
	cd "$builddir"
	python3 setup.py check
}

package() {
	cd "$builddir"
	python3 setup.py install --root="$pkgdir"
}

sha512sums="10981be2ed8b71d0cd9f663c4de047cec9664d9276968c6eec40dc45b388d1acf8eba07d534369254f178931079bf39b04eb2ceac06aa63a2021ebf62387b2f5  py3-prompt_toolkit-gns3-1.0.15.tar.gz"
